<%@page contentType="text/xml" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!--
Esempio visto da http://www.ibm.com/developerworks/xml/library/x-xformsintro1/
-->

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xf="http://www.w3.org/2002/xforms">
    <head>

        <xf:model>
            <xf:submission action="" method="get" id="submit-search"/>
        </xf:model>

        <title>XForm</title>
    </head>
    <body>
        <h1>Form HTML</h1>
        <!-- Form html -->
        <form action="" method="get">
            <p>
                Find: <input type="text" name="query"/>
                <input type="submit" value="Search"/>
            </p>
        </form>
        
        <h1>Form XForms</h1>
        <!-- Form XForms  -->
        <p>
            <xf:input ref="query">
                <xf:label>Find:</xf:label>
            </xf:input>
            <xf:submit submission="submit-search">
                <xf:label>Search</xf:label>
            </xf:submit>
        </p>


    </body>
</html>